package com.example.electronicmall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.electronicmall.to.BusinessOrderTo;
import com.example.electronicmall.entity.OrderEntity;
import com.example.electronicmall.to.OrderDetailTo;
import com.example.electronicmall.to.OrderTo;
import com.example.electronicmall.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author mwh
 * @email 1062966353@qq.com
 * @date 2022-12-02 14:48:53
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    String createOrder(OrderTo items);

    List<OrderDetailTo> listOrdersByUserId(Integer userId);

    List<BusinessOrderTo> listOrdersByBusinessId(Integer businessId);

    void receiveOrder(String orderId);

    void rejectOrder(String orderId);

    void payOrder(String orderId);

    void deleteOrder(String orderId);
}

